#include<stdio.h>
#include<sys/types.h>
int main()

{


while(1)
{
  pid_t id1 = getpid();
  pid_t id2 =getppid();
 printf("this process's PID is %d/n ", id1 ) ;
 printf("this process's ppid is %d/n",id2);
 sleep(1);
}
  return 0;
}
